django secret key

41

django secret key -

$ python manage.py shell -c 'from django.core.management import utils; print(utils.get_random_secret_key())'

generate new secret key django -

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# generate_secret.py
from django.core.management import utils


print(utils.get_random_secret_key())

Comments

Submit
0 Comments